package com.carleasoft.mps.forum.business.answer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.forum.business.answer.bean.ForumData;
import com.carleasoft.mps.forum.business.answer.bean.po.ForumDataPo;
import com.carleasoft.mps.forum.business.answer.bean.po.ForumUserPo;
import com.carleasoft.mps.forum.business.answer.bean.vo.ForumUserVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zang
 * @since 2023-05-09
 */
public interface ForumDataService extends IService<ForumData> {

    Page<ForumData> pageForumData(Page page, ForumDataPo forumDataPo);

    String saveForumData(ForumData forumData, HttpServletRequest request);

    void deleteForumData(ForumDataPo forumDataPo);

    void passForumData(ForumDataPo forumDataPo);

    void failForumData(ForumDataPo forumDataPo);

    ForumData detailForumData(ForumDataPo forumDataPo);

    Page<ForumData> selForumTab(Page page, ForumDataPo forumDataPo);

    ForumUserVo selForumUser(ForumUserPo forumUserPo);

    Page<ForumData> bisPageForumData(Page page, ForumDataPo forumDataPo);
}
